package name.pehl.taoki.paging;

import static name.pehl.taoki.paging.NumbersResourceHelper.numbersAsJson;

import org.json.JSONException;
import org.restlet.resource.Get;

/**
 * @author $Author: harald.pehl $
 * @version $Date: 2010-12-17 09:25:44 +0000 (Fri, 17 Dec 2010) $ $Revision: 211 $
 */
public class NumbersHeaderResource extends PagingHeaderResource
{
    @Get("json")
    public String represent() throws JSONException
    {
        return numbersAsJson(getPageInfo());
    }
}
